﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Model.Menu>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
	Menu
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
	<%= Html.Toolbar("Sửa", string.Format("/Menu/Edit/{0}", Model.ID), "edit")%>
	<%= Html.Toolbar("Xóa", string.Format("/Menu/Delete/{0}", Model.ID), "delete")%>
	<%= Html.Toolbar("Quay lại", "/Menu", "back")%>
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>  
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%if(ViewData["MessageInfo"]==null){ %>
	<fieldset>
		<legend>Chi tiết</legend>
		<table class="admintable">
			<tbody><tr>
				<td class="key">Tên menu</td>
				<td><%= Html.Encode(Model.Name) %></td>
			</tr>
			<tr>
				<td class="key">Loại</td>
				<td><%= Model.MenuType.Name%></td>
			</tr>
			<tr>
				<td class="key">Liên kết</td>
				<td><%= Html.Encode(Model.NavigateUrl) %></td>
			</tr>
			<tr>
				<td class="key">Thứ tự</td>
				<td><%= Html.Encode(Model.Priority) %></td>
			</tr>
			<tr>
				<td class="key">Mô tả</td>
				<td><%= Html.Encode(Model.Description) %></td>
			</tr>
			<tr>
				<td class="key">Cập nhật lúc</td>
				<td><%= Html.Encode(String.Format("{0:g}", Model.AddDate)) %></td>
			</tr></tbody>
		 </table>
	 </fieldset>
<% } %>
</asp:Content>
